import {environment} from '../../../environments/environment';

export class Logger {

    static log(message: string): void {
        if (message == undefined || message.length == 0) {
            return;
        }

        if (environment && environment.enableLogger) {
            console.log(message);
        }
    }

    static logWithParams(message?: string, ...optionalParams: string[]): void {
        if (message == undefined || message.length == 0) {
            return;
        }

        if (environment && environment.enableLogger) {
            console.log(message, ...optionalParams);
        }
    }


}
